<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>放大镜🤳</title>
    <link rel="stylesheet" href="./enlarge.css">

</head>
<body>
    <div class="box">
        <div class="show">
            <!-- 展示图片 -->
            <img src="./img/huawei1.jpg" alt="">
            <!-- 遮罩层 -->
            <div class="mask"></div>
        </div>
        <div class="enlarge"></div>
        <div class="list">
            <p class="active"><img src="./img/huawei0.jpg" data-show="./img/huawei1.jpg" data-big="./img/huawei2.jpg" alt=""></p>
            <p><img src="./img/hu0.jpg"  data-show="./img/hu1.jpg" data-big="./img/hu2.jpg" alt=""></p>
            <p><img src="./img/hua0.jpg"  data-show="./img/hua1.jpg" data-big="./img/hua2.jpg" alt=""></p>
            
        </div>
    </div>
    <div class="box box2">
        <div class="show">
            <!-- 展示图片 -->
            <img src="./img/huawei1.jpg" alt="">
            <!-- 遮罩层 -->
            <div class="mask"></div>
        </div>
        <div class="enlarge"></div>
        <div class="list">
            <p class="active"><img src="./img/huawei0.jpg" data-show="./img/huawei1.jpg" data-big="./img/huawei2.jpg" alt=""></p>
            <p><img src="./img/hu0.jpg"  data-show="./img/hu1.jpg" data-big="./img/hu2.jpg" alt=""></p>
            <p><img src="./img/hua0.jpg"  data-show="./img/hua1.jpg" data-big="./img/hua2.jpg" alt=""></p>
            
        </div>
    </div>
    <script src="./enlarge.js"></script>
    <script>
      let e = new Enlarge('.box')
      let b = new Enlarge('.box2')
    //   console.log(e);
    e.getProp()
    e.overOut()
    e.sctScale()
    e.move()
    e.bindEvent()
    b.getProp()
    b.overOut()
    b.sctScale()
    b.move()
    b.bindEvent()
    </script>
</body>
</html>